package cn.cnf.mapper;

import cn.cnf.entity.Comment;
import cn.cnf.entity.vo.ChildrenComment;
import cn.cnf.entity.vo.ParentComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (comment)数据Mapper
 *
 * @author ZhuMeiYi
 * @description
 * @since 2020-12-04 15:18:43
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {


    List<ChildrenComment> getChildrenComments(@Param("fromId") String fromId, @Param("parentId") String parentId);

    List<ParentComment> getComments(@Param("fromId")String fromId);
}
